{extend name="layout"}
{block name="content"}
<div class="alert alert-success" role="alert">
    下面是搜索"{$search}"出现的文章，共{:count($search_info)}条
</div>

<div class="col-sm-8 blog-main">
    {volist name='search_info' id='s_info'}
    <div class="blog-post">
        <h2 class="blog-post-title"><a href="/posts/{$s_info.id}/show">{$s_info.title}</a></h2>
        <p class="blog-post-meta">{$s_info.create_time|date='Y-m-d'} by <a href="/user/{$s_info.uid}">{$s_info.user.nickname}</a></p>

        <p>{:str_limit(strip_tags($s_info->content),20)}</p>
    </div>
    {/volist}
    {$search_info|raw}
</div><!-- /.blog-main -->
{/block}